from typing import Literal
from pydantic_settings import BaseSettings, SettingsConfigDict


class Settings(BaseSettings):
    model_config = SettingsConfigDict(
        env_file=".env", case_sensitive=False, extra="ignore"
    )

    environment: Literal["dev", "prod"] = "dev"
    secrect_key: str = "jwt secrect_key"
    algorithm: str = "HS256"
    access_token_expire_seconds: int = 3600 * 24

    datetime_format: str = "%Y-%m-%d %H:%M:%S"


settings = Settings()
